var app = getApp();

Page({
  data: {
    money: ''
  },
  onShow: function () {
    var that = this;
    that.getData();
  },
  getData: function () {
    var that = this;
    app.JsonPost("Api/User/index", {}, function (res) {
      //console.log(res);
      that.setData({
        money: res.money
      })
    });
  },
  myBalance: function () {
    wx.navigateTo({ url: "balance" })
  },
  myTicket: function () {
    wx.navigateTo({ url: "ticket" })
  },
  myRefund: function () {
    wx.navigateTo({ url: "refund" })
  },
  myBill: function () {
    wx.navigateTo({ url: "bill" })
  }
})